
import { EventEmitter } from '@angular/core';

export class SideComponentParams {
    
    _onChange$: EventEmitter<any> = new EventEmitter();
    _onClose$: EventEmitter<any> = new EventEmitter();
    _onError$: EventEmitter<any> = new EventEmitter();

    constructor(private params: object) {}

    get(): object {
        return this.params;
    }

    onChange(data: any): void {
        this._onChange$.emit(data);
    }

    onClose(): void {
        this._onClose$.emit();
    }

    onError(data: any): void {
        this._onError$.emit(data);
    }

}